home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / advocacy-part1 / 5087 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.8 KB

  1. Path: news.dal.ca!news
  2. From: hayes@ug.cs.dal.ca (Kevin Hayes)
  3. Newsgroups: comp.sys.powerpc,comp.os.linux.advocacy,comp.sys.mac.advocacy,comp.os.os2.advocacy,comp.sys.amiga.advocacy
  4. Subject: Re: Copland merely shifts the burden to the programmer
  5. Date: Thu, 07 Mar 1996 18:42:07 GMT
  6. Organization: Dalhousie University
  7. Message-ID: <4hnalr$6dn@News.Dal.Ca>
  8. References: <nevin-0602962253080001@150.135.1.79> <31349BAA.6418@mediamatic.nl> <4h4qir$dpj@nuke.csu.net> <313CA521.13D8@mediamatic.nl> <4hjiv4$hdt@nuke.csu.net> <313EE335.8A4@mediamatic.nl>
  9. NNTP-Posting-Host: khayes.macdonald.dal.ca
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Pascal Haakmat <pascal@mediamatic.nl> wrote:
  13.  
  14. >Gregory L Hansen wrote:
  15. >> >Then the blue box would have to restart all the applications that were running at the
  16. >> >time the blue box crashed. While I certainly consider this a feasible sort of thing,
  17. >> >re-loading every application sure does kill the prospect of 'shorter startup times'.
  18. >> I don't think you'd have to restart any apps.  As far as I can tell, if
  19. >> the restart generates some kind of RestartedBlueBox event, you can
  20. >> trivially redraw everything.  
  21.  
  22. >Surely though the routines for window drawing MUST be cooperatively run inside the Blue Box and 
  23. >therefore be restarted upon a Blue Box crash. As specs have come by now, there is no way for a 
  24. >protected thread to preemptively call the Toolbox.
  25.  
  26. No, I would say the kernel would restart the blue box, and the apps
  27. within it.
  28.  
  29. >A problem I see is that there is noone listening to the RestartedBlueBox event since to do 
  30. >that, you'd have to run cooperatively inside the Blue Box that has just crashed and is 
  31. >recovering itself.
  32.  
  33. When an app is started it checks for any preemptive threads belonging
  34. to it. For example, look for all running processes belonging to a
  35. creator code - it could be the same creator code that apps and docs
  36. use today. If an app finds one, it can call that preemptive process to
  37. "reconnect" to it.
  38.  
  39. If an app doesn't find a preemptive process with it's creator code, it
  40. assumes there are none. (i.e. the download has finished, or we are
  41. starting the app for the first time)
  42.  
  43. >> Everything is linked, so you'll always know how to find anything
  44. >> you need.  Then go through it and, one at a time, call the functions you
  45. >> used to draw them in the first place.  Replace the old window handles
  46. >> with the new ones.
  47.  
  48. >You can't call these functions from a protected thread, and your cooperative Blue Box thread 
  49. >has just crashed along with the Blue Box. How are you going to call these functions without 
  50. >first restarting your cooperative thread?
  51.  
  52. You can't call GUI functions no. But there's nothing stopping a
  53. "reconnect" Apple Event from going to and from the threads (or
  54. processes).
  55.  
  56. >> But until we learn more, it's all just blind speculation.
  57.  
  58. >Lot's of fun nevertheless :)
  59.  
  60. Yep.
  61.  
  62.  
  63.